package com.fu.exception;

/**
 * @Project : rest-server
 * @Package Name : com.fu.exception
 * @Description : 自定义异常类
 * @author : Little Ant
 * @Creation Date : 2017年 11月 01日 13:31
 * @ModificationHistory who      when        what
 * -------  -----------  ------------------------------
 */
public class RestException extends Exception {
    private String errorCode;
    public RestException(String message){
        super(message);
    }

    public String getErrorCode() {
        return errorCode;
    }

    public void setErrorCode(String errorCode) {
        this.errorCode = errorCode;
    }

    public RestException(String errorCode, String message){
        super(message);
        this.errorCode = errorCode;
    }
}
